package yf.mall.enums;

import lombok.Getter;


/**
 * @author hxf
 * @email 505860922@qq.com
 * @date Mon Oct 21 08:39:57 CST 2019
 */
@Getter
public enum CourseStatusEnum {


    PRE(0, "预报名"),


    CONFIRM(1, "确认报名"),


    CLOSED(2, "已经开课");


    int index;
    String value;

    CourseStatusEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return CourseStatusEnum.values()[idx].getValue();
    }

}
